package com.yxzz.core.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 中医用药记录对象 p_medicinal_record
 * 
 * @author ruoyi
 * @date 2023-02-28
 */
public class PMedicinalRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 病人ID */
    @Excel(name = "病人ID")
    private Long patientId;

    /** 方名 */
    @Excel(name = "方名")
    private String formulaName;

    /** 组成 */
    @Excel(name = "组成")
    private String composition;

    /** 剂量 */
    @Excel(name = "剂量")
    private String dosage;

    /** 药方图片，图片URL，多个url通过;号分隔 */
    @Excel(name = "药方图片，图片URL，多个url通过;号分隔")
    private String medicinalFile;

    /** 用法 */
    @Excel(name = "用法")
    private String administration;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPatientId(Long patientId) 
    {
        this.patientId = patientId;
    }

    public Long getPatientId() 
    {
        return patientId;
    }
    public void setFormulaName(String formulaName) 
    {
        this.formulaName = formulaName;
    }

    public String getFormulaName() 
    {
        return formulaName;
    }
    public void setComposition(String composition) 
    {
        this.composition = composition;
    }

    public String getComposition() 
    {
        return composition;
    }
    public void setDosage(String dosage) 
    {
        this.dosage = dosage;
    }

    public String getDosage() 
    {
        return dosage;
    }
    public void setMedicinalFile(String medicinalFile) 
    {
        this.medicinalFile = medicinalFile;
    }

    public String getMedicinalFile() 
    {
        return medicinalFile;
    }
    public void setAdministration(String administration) 
    {
        this.administration = administration;
    }

    public String getAdministration() 
    {
        return administration;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("patientId", getPatientId())
            .append("formulaName", getFormulaName())
            .append("composition", getComposition())
            .append("dosage", getDosage())
            .append("medicinalFile", getMedicinalFile())
            .append("administration", getAdministration())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
